function dab:system/map/item_spawner/spawn_timer/start

#kill old item
function util:gamerule_run/bool_true {gamerule_id:"mis_reserve_old_item",run:"function dab:system/map/item_spawner/spawn_item/kill_old_item with entity @s"}

#SetItemOldKill
execute if entity @n[type=item,nbt={Age:0s},distance=..1,nbt={Item:{components:{"minecraft:custom_data":{byMIS:true}}}}] run function dab:system/map/item_spawner/spawn_item/set_by_mis with entity @s